package list

import "test/collections"

// list接口
type List interface {
	collections.Collection
	IndexOf(data interface{}) int

	LastIndexOf(data interface{}) int

	SubList(formIndex, toIndex int) ([]interface{}, error)

	Get(index int) interface{}

	Set(index int, data interface{}) bool
}
